[ <--- prev -- ]  [ HOME ]  [ -- next ---> ]

[ full index ]


OPEN

defines input/output files to be connected at run-time

     WHAT(1) > 0. : logical unit number of a FORMATTED file to be opened
             < 0. : logical unit number of an UNFORMATTED file to be
                    opened

             Default : no default (WHAT(1) must not be = 0.)

     WHAT(2-6)    : not used

     SDUM = NEW      : the file is opened with status 'NEW'
          = OLD      : the file is opened with status 'OLD'
          = UNKNOWN  : the file is opened with status 'UNKNOWN'
          = READONLY : the file is opened with status 'OLD' and (only
                       on VAX VMS/OpenVMS) in mode 'READONLY'
          = SCRATCH  : the file is opened with status 'SCRATCH'

          Default: SDUM = OLD if |WHAT(1)| = 9, 12, 13, 14
                        = NEW otherwise

If SDUM is not = SCRATCH, the name of the file to be opened must be given in the card which immediately follows.

     Default (option OPEN not given): no file is opened at run time. In
             this case the I/O files must be pre-connected via ASSIGN on
             VAX VMS/OpenVMS (see (3)). On UNIX and Linux, the rfluka
             script provided with the FLUKA code creates the necessary
             symbolic links. On some UNIX systems (e.g. HPUX-9),
             OPEN MUST be given in any case for the data files.

Notes:

Examples:

 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
 *   opening the file with the random number seeds for the next run
 OPEN              2.                                                  NEW
 newseed.random
 *   the neutron cross section file
 OPEN             -9.                                                  READONLY
 neuxsc-ind_260.bin
 *   the working space for Combinatorial Geometry
 OPEN             16.                                                  SCRATCH